import { createRouter, createWebHistory } from 'vue-router'
import login from '../views/Login.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('../views/Home.vue'),
      children:[
        {
          path: '/picture',
          name: 'picture',
          component: ()=>import("@/views/wedding/picture/index.vue")
        },
        {
          path: '/type',
          name: 'type',
          component: ()=>import("@/views/wedding/type/index.vue")
        },
        {
          path: '/large',
          name: 'large',
          component: ()=>import("@/views/wedding/large/index.vue")
        },
      ]
    }
  ]
})

export default router
